#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void reverse_string(char* arr)
{
	char* left = arr;
	char* right = arr + strlen(arr) - 1;
	while (left < right)
	{
		char tmp = *left;
		*left = *right;
		*right = tmp;
		left++;
		right--;
	}
}
int main()
{
	char arr[20];
	scanf("%s", &arr);
	reverse_string(arr);
	printf(arr);
	return 0;
}